package com.service.business.merchant.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.service.business.base.dto.LoginUserSession;
import com.service.business.merchant.controller.rep.MerchantOrderPagRep;
import com.service.business.merchant.controller.req.MerchantOrderCreateReq;
import com.service.business.merchant.controller.req.MerchantOrderPageReq;
import com.service.core.rest.request.PageRequest;
import com.service.core.rest.response.CommonPageRep;
import com.service.dao.model.Member;
import com.service.dao.model.MemberStore;
import com.service.dao.model.MerchantCreditLine;
import com.service.dao.model.MerchantOrder;

import java.math.BigDecimal;
import java.util.List;


/**
 * 商家订单表
 *
 * @author xxxx
 * @email xxxx@qq.com
 * @date 2020-03-28 12:54:56
 */
public interface MerchantOrderService extends IService<MerchantOrder> {

    CommonPageRep<MerchantOrderPagRep> page(MerchantOrderPageReq pageRequest);

    void add(MerchantOrderCreateReq createReq, Member member);

    MerchantOrder getByOrderNo(String orderNo);

    void writeOff(MerchantOrder order, Integer memberId, MemberStore memberExdfStore, MerchantCreditLine merchantCreditLine);

    BigDecimal getOfflineTotalConsumption(List<Integer> memberIdList);

    BigDecimal getOfflineTotalConcessionUsdt(List<Integer> memberIdList);

}

